﻿using System.Runtime.Serialization;
using CID.Domain.Infrastructure;

namespace CID.Execution.Support.Information
{
    [DataContract]
    public class TemplateTypeInfo
    {
        protected TemplateTypeInfo() { }

        public TemplateTypeInfo(ITemplateType templateType)
        {
            Id = templateType.Id;
            Name = templateType.Name;
        }

        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public string Name { get; set; }

        internal TemplateTypeInfo Clone()
        {
            return new TemplateTypeInfo() { Id = Id, Name = Name };
        }
    }
}
